Skip to content

Partial template for Created and Updated dates - #8

Merged
JeremyMcCormick merged 1 commit into
mainfrom
add-page-dates
Mar 20, 2024
Merged

JeremyMcCormick merged 1 commit into
mainfrom
add-page-dates

Conversation

@gmantele

Copy link
Copy Markdown
Member

Add a partial template to add a 'Created' and eventually 'Updated' dates at the

beginning of a page.

For the moment, this is not used. But to integrate this partial in a template file, nothing less simple than inserting the following snippet wherever one wants to add these dates in the final HTML page:

{{- partial "page-dates.html" . }}

I have also added some simple CSS, but it can obviously be adapted to the IVOA website.

…tes at the

beginning of a page.

For the moment, this is not used. But to integrate this partial in a template
file, nothing less simple than inserting the following snippet wherever one
wants to add these dates in the final HTML page:

```
{{- partial "page-dates.html" . }}
```

I have also added some simple CSS, but it can obviously be adapted to the IVOA
website.

@JeremyMcCormick JeremyMcCormick left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me so we can show updated dates without repeating the code for it in each page. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants